<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('api/v1/', function () {

    // 教务系统
    Route::group('teach/', function () {
        Route::any("auth", "\\app\\controller\\api\\v1\\Teach@auth"); // 授权登录
        Route::get("person_info", "\\app\\controller\\api\\v1\\Teach@personInfo"); // 个人信息
        Route::get("score_query", "\\app\\controller\\api\\v1\\Teach@scoreQuery"); // 成绩信息条件
        Route::get("score_info", "\\app\\controller\\api\\v1\\Teach@scoreInfo"); // 成绩信息
        Route::get("course_info", "\\app\\controller\\api\\v1\\Teach@courseInfo"); // 课表信息
        Route::get("review_find", "\\app\\controller\\api\\v1\\Teach@reviewFind"); // 学生评价
        Route::get("review_list", "\\app\\controller\\api\\v1\\Teach@reviewList"); // 评价列表
        Route::get("review_detail", "\\app\\controller\\api\\v1\\Teach@reviewDetail"); // 评价详情
        Route::post("review_submit", "\\app\\controller\\api\\v1\\Teach@reviewSubmit"); // 提交评价
    })->middleware(\app\middleware\Auth::class);
});
